import json

import paho.mqtt.publish as publish
def send_msg(message):
    publish.single("llm/ask", message, hostname="120.77.8.146")


if __name__ == '__main__':
    msg = '你好'
    history = [('1+1等于几','2')]
    send_msg(json.dumps({'message':msg, 'history':history}))